{__NOLAYOUT__}
<include file="Index:header" />
<script type="text/javascript">

    /**
     * 全选checkbox,注意：标识checkbox id固定为为check_box
     * @param string name 列表check名称,如 uid[]
     */
    function selectall(name) {
        //alert(name);
        if ($("#check_box").attr("checked")=='checked') {
            $("input[name='"+name+"']").each(function() {
                $(this).attr("checked","checked");


            });
        } else {
            $("input[name='"+name+"']").each(function() {
                $(this).removeAttr("checked");
            });
        }
    }
    function confirm_delete(){
        if(confirm('确认删除吗？')) $('#myform').submit();
    }
</script>

<script type="text/javascript" src="__PUBLIC_PATH__fancybox/lib/jquery.mousewheel-3.0.6.pack.js"></script>
<script type="text/javascript" src="__PUBLIC_PATH__fancybox/source/jquery.fancybox.js"></script>

<link rel="stylesheet" type="text/css" href="__PUBLIC_PATH__fancybox/source/jquery.fancybox.css" media="screen" />
 

<script type="text/javascript">
    $(document).ready(function() {
        /*
         *  Simple image gallery. Uses default settings
         */

        $('.fancybox').fancybox();

        $("#fancybox-manual-b").click(function() {
            $.fancybox.open({

                type : 'iframe',
                padding : 5
            });
        });



    });
</script>
<style type="text/css">
    .fancybox-custom .fancybox-skin {
        box-shadow: 0 0 50px #222;
    }
</style>
<div class="pad-10">
<div class="content-menu ib-a blue line-x">
{$nav_submenu}
</div>
	 <form name="myform" id="myform" action="" method="post" >
        <div class="table-list">

            <table  width="68%"><!-- Table -->
				<thead>
						<tr>
                    <th><input type="checkbox" id="check_box"  class="checkall" onclick="selectall('ids[]');" /></th>
							<th>用户名</th>
                            <th>真实姓名</th>
							<th>电子邮箱</th>
							<th>角色名称</th>
                            <th>添加时间</th>
							<th>操作</th>
						</tr>
					</thead>
					<script type="text/javascript" >
							$(function(){
							$('.confirm_del').click(function(){
								return confirm('确认要删除？');
            
							 })
        
						})
					</script>
					<tbody>
						<volist name="adminlist" id="admin">
							<tr>
                        <td align="center"><input type="checkbox"  class="inputcheckbox "  name="ids[]" value="{$admin.adminid}" /></td>
							<td>{$admin.adminuser}</td>
                                <td>{$admin.truename}</td>
							<td>{$admin.adminemail}</td>
							<td>{$admin.rolename}</td>
                                <td>{$admin.addtime}</td>
							<td>
                                <?php
                            $is_list=0;
                            if($session['roleid'] > $admin['id'])
                                {
                                    $is_list=0;
                                }
                                else
                                {
                                    $is_list=1;
                                }
                                ?>
                                <?php
                             if( $is_list==1)
                             {
							if($egarr['29']){
							?>
							<a href="__APP_PATH__index.php?g=Admin&m=Admin_manage&a=edit&id={$admin.adminid}"  class="fancybox fancybox.iframe" ><font color="green">修改</font></a>&nbsp;&nbsp;
							<?php 
							} 
							if(!empty($egarr['30'])){
							?>
							<a href="__URL__/delstate/id/{$admin.adminid}" class="confirm_del" ><font color="red">删除</font></a>&nbsp;&nbsp;
							<?php } ?>

                                <?php
                                }
                                ?>
							</td>
						</tr>
						</volist>
					</tbody>
				</table> <!-- END Table -->

        </form>
    <div id="pages" class="text-c">
            {$adminpage}
        <div>
	
			

			
		</div> <!-- END Content -->
	</div>
<include file="Public:content_footer" />